<template>
  <div >
      detail
      <h1>
          {{this.$route.params.filmid}}
      </h1>
  </div>
</template>

<script>
 import {moviedetaillistdata} from '@/api/api'
// export const moviedetaillistdata = (filmid)=>{
//     // api 可以改变请求头的参数 用来改变host 
//     http.defaults.headers.info='info'
//     return http.get(moiveDetailUrl+filmid)
// }

export default {
 
  props:[],
  components: {
   
  },
  data() {
    return {
     
    };
  },
  
  methods: {},
 
  computed: {},
 
  watch: {},
 
  filters: {},
 
  beforeCreate() {},
 
  created() {
      console.log('detail created')
      console.log(this.$route)
//       export const moviedetaillistdata = (filmid)=>{
//     // api 可以改变请求头的参数 用来改变host 
//     http.defaults.headers.info='info'
//     return http.get(moiveDetailUrl+filmid)
// }

      moviedetaillistdata(this.$route.params.filmid).then((res)=>{
          console.log(res)
      })
  },
 
  beforeMount() {},
 
  mounted() {},
 
  beforeUpdate() {},
 
  updated() {},
 
  beforeDestroy() {},
 
  destroyed() {},
}
</script>


<style  lang='scss'>

</style>
